package com.itheima.mapper;

import com.itheima.pojo.Clazz;
import com.itheima.pojo.PageQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClazzMapper {

    //查询所有个数
    public Integer queryClazzCount();

    //查询符合条件的数据
    public List<Clazz> queryClazzByCondation(@Param("start") Integer start, @Param("pageSize") Integer pageSize, @Param("pageQuery") PageQuery pageQuery);

    public void addClazz(@Param("clazz") Clazz clazz);

    public Clazz queryClazzById(@Param("id") Integer id);

    public void updateClazz(@Param("clazz") Clazz clazz);

    public void deleteClazzById(@Param("id") Integer id);
}
